home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / picks / HTTrack / httrack-3.22-3.exe / {app} / src / htsconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-17  |  3.9 KB  |  134 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31.  
  32. /* ------------------------------------------------------------ */
  33. /* File: Global engine definition file                          */
  34. /* Author: Xavier Roche                                         */
  35. /* ------------------------------------------------------------ */
  36.  
  37. // Ensemble des paramËtres du robot
  38.  
  39. #ifndef HTTRACK_GLOBAL_ENGINE_DEFH
  40. #define HTTRACK_GLOBAL_ENGINE_DEFH
  41.  
  42. // ------------------------------------------------------------
  43. // DÈfinitions du ROBOT
  44.  
  45. // accËs des miroirs pour les autres utilisateurs (0/1)
  46. #define HTS_ACCESS 1
  47.  
  48. // temps de poll d'une socket: 1/10s
  49. #define HTS_SOCK_SEC 0
  50. #define HTS_SOCK_MS 100000
  51.  
  52. // nom par dÈfaut
  53. #define DEFAULT_HTML "index.html"
  54.  
  55. // nom par dÈfaut pour / en ftp
  56. #define DEFAULT_FTP "index.txt"
  57.  
  58. // extension par dÈfaut pour fichiers n'en ayant pas
  59. #define DEFAULT_EXT       ".html"
  60. #define DEFAULT_EXT_SHORT ".htm"
  61. //#define DEFAULT_EXT       ".txt"
  62. //#define DEFAULT_EXT_SHORT ".txt"
  63.  
  64. // Èviter les /nul, /con..
  65. #define HTS_OVERRIDE_DOS_FOLDERS 1
  66.  
  67. // indexing (keyword)
  68. #define HTS_MAKE_KEYWORD_INDEX 1
  69.  
  70. // poll stdin autorisÈ? (0/1)
  71. #define HTS_POLL 1
  72.  
  73. // vÈrifier les liens sans extension (0/1) [‡ Èviter, trËs lent]
  74. #define HTS_CHECK_STRANGEDIR 0
  75.  
  76. // le slash est un html par dÈfaut (exemple/ est toujours un html)
  77. #define HTS_SLASH_ISHTML 1
  78.  
  79. // supprimer index si un rÈpertoire identique existe
  80. #define HTS_REMOVE_ANNOYING_INDEX 1
  81.  
  82. // Ècriture directe dur disque possible (0/1)
  83. #define HTS_DIRECTDISK 1
  84.  
  85. // gÈrer une table de hachage?
  86. #define HTS_HASH 1
  87.  
  88. // fast cache (build hash table)
  89. #define HTS_FAST_CACHE 1
  90.  
  91. // le > peut Ítre considÈrÈ comme un tag de fermeture de commentaire (<!-- > est valide)
  92. #define GT_ENDS_COMMENT 1
  93.  
  94. // always adds a '/' at the end if a '~' is encountered (/~smith -> /~smith/)
  95. #define HTS_TILDE_SLASH 0
  96.  
  97. // always transform a '//' into a sigle '/'
  98. #define HTS_STRIP_DOUBLE_SLASH 0
  99.  
  100. // case-sensitive pour les dossiers et fichiers (0/1)
  101. // [normalement 1, mais pose des problËmes (url malformÈe par exemple) et n'est pas trËs utile..
  102. // ..et pas bcp respectÈ]
  103. #define HTS_CASSE 0
  104.  
  105. // Un fichier ayant une taille diffÈrente du content-length doit il Ítre annulÈ?
  106. // SEE opt.tolerant and opt.http10
  107. // #define HTS_CL_IS_FATAL 0
  108.  
  109. // une erreur supprime le fichier sur disque
  110. // (non fixÈ pour cause de retry)
  111. #define HTS_REMOVE_BAD_FILES 0
  112.  
  113. // en cas de Range: xx- donnant un Content-length: xx
  114. // alors skipper le fichier, considÈrÈ comme transmis
  115. // #define HTS_SKIP_FULL_RANGE 1
  116.  
  117. // nombre max de filtres que l'utilisateur peut fixer
  118. // #define HTS_FILTERSMAX 10000
  119. #define HTS_FILTERSINC 1000
  120.  
  121. // connect non bloquant? (poll sur write)
  122. #define HTS_XCONN 1
  123.  
  124. // gethostbyname non bloquant? (gestion multithread)
  125. #define HTS_XGETHOST 1
  126.  
  127. // ‡ partir de combien de secondes doit-on Ètudier le taux de transfert?
  128. #define HTS_WATCHRATE 15
  129.  
  130. // ------------------------------------------------------------
  131. //
  132.  
  133. #endif
  134.